//
//  HABleManager+Expand.h
//  KEREN
//
//  Created by chenliang on 2023/8/30.
//

#import "HABleManager.h"
typedef void(^cmdBlock)(HABleModel *_Nonnull bleModel);
NS_ASSUME_NONNULL_BEGIN

@interface HABleManager (Expand)
//查询设备连接状态
+ (CBPeripheralState)checkBleConnectedState:(NSString *)sn_code;
//查询设备
+(CBPeripheral *)checkBleConnectedPeripheral:(NSString *)sn_code;

//蓝牙启动关闭车辆
+(void)setDeviceIsOpen:(BOOL)isopen withCmd:(cmdBlock)cmd;
//删除注册无感记录
+(void)blErssiIrk:(BOOL)isOpen cmdBlock:(cmdBlock)cmd;
//一键寻车
+(void)bleStarefoundDevice:(cmdBlock)cmd;
//结束寻车
+(void)bleEndfoundDevice:(cmdBlock)cmd;
//电池仓锁打开
+(void)bleOpenTrunk:(cmdBlock)cmd;
//设置无感解锁距离
+(void)bleUnlockDistance:(int)distance withCmd:(cmdBlock)cmd;
//设置震动灵敏度
+(void)bleVibrateSensitive:(int)sensitive withCmd:(cmdBlock)cmd;
//设置锁定状态
+(void)bleLockStatusChange:(int)status withCmd:(cmdBlock)cmd;
//自动锁车
+(void)bleAutoLock:(int)time withCmd:(cmdBlock)cmd;

//蓝牙查询车辆状态
+(void)bleQueryOpenStatus:(cmdBlock)cmd;
//查询靠近解锁档位
+(void)bleQueryUnLockDistance:(cmdBlock)cmd;
//查询震动灵敏度
+(void)bleQueryVibrateSensitive:(cmdBlock)cmd;
//查询无感状态   设备暂时不支持
+(void)bleQueryRssiIrk:(cmdBlock)cmd;
//查询电池电压电容
+(void)bleQueryElectrict:(cmdBlock)cmd;
//查询电池状态
+(void)bleQueryElectrictStatus:(cmdBlock)cmd;
//获取设备SN号 0-15位
+(void)bleQueryDeviceSN:(cmdBlock)cmd;
//获取设备唯一标识 0-7 UUId 8-13 mac地址 14-28IMEI号码 29-43IMSI号码 44-63 ICCID号码
+(void)bleQueryDeviceCharacteristic:(cmdBlock)cmd;
//获取设备名称和硬件版本
+(void)bleQueryDeviceNameAndVersion:(cmdBlock)cmd;
//获取中控固件信息
+(void)bleQueryDeviceOTAVersion:(cmdBlock)cmd;
//获取锁定状态
+(void)bleQueryLockStatus:(cmdBlock)cmd;
//查询信号强度
+(void)bleQuery4GAndGPS:(cmdBlock)cmd;

@end

NS_ASSUME_NONNULL_END
